﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="edit">
    <tr>
        <td class="label required">
            Họ và Tên <span>*</span>
        </td>
        <td class="input">
            <% 
                Response.Write(Html.TextBox("FullName", ((TSV.Models.Collaborator)ViewData.Model).FullName, new { @maxlength = "100", @style = "width:200px" }));
                Response.Write(Html.Hidden("ID", ((TSV.Models.Collaborator)ViewData.Model).ID));                              
            %>
        </td>
    </tr>
    <tr>
        <td class="label required">
            Giới Tính <span>*</span>
        </td>
        <td class="input">
            <% 
                Response.Write(Html.RadioButton("Gender", "Nam", ((TSV.Models.Collaborator)ViewData.Model).Gender == true ? true : false, new { @id = "rbMale"}));
                Response.Write("<label for=\"rbMale\">Nam</label>&nbsp;");
                Response.Write(Html.RadioButton("Gender", "Nữ", ((TSV.Models.Collaborator)ViewData.Model).Gender == true ? false : true, new { @id = "rbFemale" }));
                Response.Write("<label for=\"rbFemale\">Nữ</label>");
            %>
        </td>
    </tr>
    <tr>
        <td class="label required">
            Địa Chỉ <span>*</span>
        </td>
        <td class="input">
            <% 
                Response.Write(Html.TextArea("Address", ((TSV.Models.Collaborator)ViewData.Model).Address, new { @style = "width:200px", @maxlength = "200" }));               
            %>
        </td>
    </tr>
    <tr>
        <td class="label required">
            Điện Thoại <span>*</span>
        </td>
        <td class="input">
            <% 
                Response.Write(Html.TextBox("Phone", ((TSV.Models.Collaborator)ViewData.Model).Phone, new { @style = "width:200px", @maxlength = "20" }));               
            %>
        </td>
    </tr>
    <tr>
        <td class="label required">
            Email <span>*</span>
        </td>
        <td class="input">
            <% 
                Response.Write(Html.TextBox("Email", ((TSV.Models.Collaborator)ViewData.Model).Email, new { @style = "width:200px" , @maxlength = "200"}));               
            %>
        </td>
    </tr>
    <tr>
        <td class="label">
            Trường Học
        </td>
        <td class="input">
            <% 
                Response.Write(Html.TextBox("School", ((TSV.Models.Collaborator)ViewData.Model).School, new { @style = "width:200px", @maxlength = "200" }));               
            %>
        </td>
    </tr>
    <tr>
        <td class="label">
            Niên Học
        </td>
        <td class="input">
            <% 
                Response.Write(Html.TextBox("SchoolYear", ((TSV.Models.Collaborator)ViewData.Model).SchoolYear, new { @style = "width:200px", @maxlength = "50" }));               
            %>
        </td>
    </tr>    
    <tr>
        <td>
        </td>
        <td>
            <input type="submit" class="save" value="" alt="" />
            <input type="button" class="cancel" value="" alt="" onclick="JS_LIB.closePopup()" />
        </td>
    </tr>
</table>
